//
//  Common.swift
//  BNWeiBo
//
//  Created by ba.o0 on 16/8/10.
//  Copyright © 2016年 itcast. All rights reserved.
//

<<<<<<< HEAD
//7.0
//相当于OC中的pch文件
import UIKit

//12.4
// 微博账号
let WBName = "18911662699"
let WBPassWD = "peng19890421"

//12.0
//微博相关信息
let WBAppKey = "438010247"
let WBAppSecret = "36a6923eb2031ffd98741b6929b2bbde"
let WBRedirect_uri = "http://www.baidu.com"

//主题颜色
=======
import UIKit

//7.0
//相当于OC中的pch文件
//主题颜色

>>>>>>> a7bd7b8df0ef6cde14b4fd9f5315e104b71c0711
let appThemeColor = UIColor.orangeColor()

//RGB闭包

func RGB (red: CGFloat, green: CGFloat, blue: CGFloat, alpha:CGFloat=1) -> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}

//随机色

func randomColor() -> UIColor {
    
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    
    return RGB(r, green: g, blue: b)
}